#videoconference_page {
    min-height: 100%;
    position: relative;
    transform: translate3d(0, 0, 0);
    width: 100%;
}

#layout_wrapper {
    @include ltr;
    display: flex;
    height: 100%;
}

#videospace {
    display: block;
    height: 100%;
    width: 100%;
    min-height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    overflow: hidden;
}

#largeVideoBackgroundContainer,
.large-video-background {
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;

    #largeVideoBackground {
        min-height: 100%;
        min-width: 100%;
    }
}
#largeVideoBackgroundContainer {
    filter: blur(40px);
}

.videocontainer {
    position: relative;
    text-align: center;
    overflow: 'hidden';
}

#localVideoWrapper {
    display:inline-block;
}

.flipVideoX {
    transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
}

#localVideoWrapper video,
#localVideoWrapper object {
    border-radius: $borderRadius !important;
    cursor: hand;
    object-fit: cover;
}

#largeVideo,
#largeVideoWrapper,
#largeVideoContainer {
    overflow: hidden;
    text-align: center;

    &.transition {
        transition: width 1s, height 1s, top 1s;
    }
}

.animatedFadeIn {
    opacity: 0;
    animation: fadeInAnimation 0.3s ease forwards;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animatedFadeOut {
    opacity: 1;
    animation: fadeOutAnimation 0.3s ease forwards;
}

@keyframes fadeOutAnimation {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#largeVideoContainer {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 !important;
}

#largeVideoWrapper {
    box-shadow: 0 0 20px -2px #444;
}

#largeVideo,
#largeVideoWrapper
{
    object-fit: cover;
}

#sharedVideo video {
    width: 100%;
    height: 100%;
}

#sharedVideo.disable-pointer {
    pointer-events: none;
}

#sharedVideo,
#etherpad,
#localVideoWrapper video,
#localVideoWrapper object,
#localVideoWrapper,
#largeVideoWrapper,
#largeVideoWrapper>video,
#largeVideoWrapper>object,
.videocontainer>video,
.videocontainer>object {
    position: absolute;
    left: 0;
    top: 0;
    z-index: $zindex1;
    width: 100%;
    height: 100%;
}

#etherpad {
    text-align: center;
}

#etherpad {
    z-index: $zindex0;
}

#alwaysOnTop .displayname {
    font-size: 0.875rem;
    position: inherit;
    width: 100%;
    left: 0px;
    top: 0px;
    margin-top: 10px;
}

/**
 * Audio indicator on video thumbnails.
 */
.videocontainer>span.audioindicator,
.videocontainer>.audioindicator-container {
    position: absolute;
    display: inline-block;
    left: 6px;
    top: 50%;
    margin-top: -17px;
    width: 6px;
    height: 35px;
    z-index: $zindex2;
    border: none;

    .audiodot-top,
    .audiodot-bottom,
    .audiodot-middle {
        opacity: 0;
        display: inline-block;
        @include circle(5px);
        background: rgba(9, 36, 77, 0.9);
        margin: 1px 0 1px 0;
        transition: opacity .25s ease-in-out;
        -moz-transition: opacity .25s ease-in-out;
    }

    span.audiodot-top::after,
    span.audiodot-bottom::after,
    span.audiodot-middle::after {
        content: "";
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        -webkit-filter: blur(0.5px);
        filter: blur(0.5px);
        background: #44A5FF;
    }
}

#dominantSpeaker {
    visibility: hidden;
    width: 300px;
    height: 300px;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#dominantSpeakerAvatarContainer,
.dynamic-shadow {
    width: 200px;
    height: 200px;
}

#dominantSpeakerAvatarContainer {
    top: 50px;
    margin: auto;
    position: relative;
    overflow: hidden;
    visibility: inherit;
}

.dynamic-shadow {
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -100px 0 0 -100px;
    transition: box-shadow 0.3s ease;
}

.avatar-container {
    @include maxSize(60px);
    @include absoluteAligning();
    display: flex;
    justify-content: center;
    height: 50%;
    width: auto;
    overflow: hidden;

    .userAvatar {
        height: 100%;
        object-fit: cover;
        width: 100%;
        top: 0px;
        left: 0px;
        position: absolute;
    }
}

#videoNotAvailableScreen {
    text-align: center;
    #avatarContainer {
        border-radius: 50%;
        display: inline-block;
        height: 50dvh;
        margin-top: 25dvh;
        overflow: hidden;
        width: 50dvh;

        #avatar {
            height: 100%;
            object-fit: cover;
            width: 100%;
        }
    }
}

.sharedVideoAvatar {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#remotePresenceMessage,
#remoteConnectionMessage {
    position: absolute;
    width: auto;
    z-index: $zindex2;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    color: #FFF;
    left: 50%;
    transform: translate(-50%, 0);
}
#remotePresenceMessage .presence-label,
#remoteConnectionMessage {
    opacity: .80;
    text-shadow:    0px 0px 1px rgba(0,0,0,0.3),
                    0px 1px 1px rgba(0,0,0,0.3),
                    1px 0px 1px rgba(0,0,0,0.3),
                    0px 0px 1px rgba(0,0,0,0.3);

    background: rgba(0,0,0,.5);
    border-radius: 5px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
#remoteConnectionMessage {
    display: none;
}

.display-video {
    .avatar-container {
        visibility: hidden;
    }

    video {
        visibility: visible;
    }
}

.display-avatar-only {
    .avatar-container {
        visibility: visible;
    }

    video {
        visibility: hidden;
    }
}

.presence-label {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 100;
    left: 0;
    margin: 0 auto;
    overflow: hidden;
    pointer-events: none;
    right: 0;
    text-align: center;
    text-overflow: ellipsis;
    top: calc(50% + 30px);
    white-space: nowrap;
    width: 100%;
}
